package wsepForum.common.elements;

/**
 * 
 * @author Ofir Tam & Ori Ossmy
 *
 */
public class TopicHeader extends AForumElement {

	
	/*****************************
	 * MEMBERS                   *
	 *****************************/

	/**
	 *
	 */
	private MessageHeader newestMessageHeader;
	
	/*****************************
	 * CONSTRUCTOR               *
	 *****************************/
	/**
	 * 
	 * @param headLine
	 * @param timeStamp
	 */
	public TopicHeader(String headLine, int parentID) {
		super(headLine,  parentID);
	}
	
	/*****************************
	 * METHODS                   *
	 *****************************/
	/**
	 *
	 * @return
	 */
	public MessageHeader getNewestMessage() {
		return this.newestMessageHeader;
	}
	
	/**
	 *
	 * @param messageHeader
	 */
	public void setNewestMessage(MessageHeader messageHeader) {
		this.newestMessageHeader = messageHeader;
	}
	
	/**
	 *
	 */
	public ForumElementType elementIdetitity(){
		return ForumElementType.TOPIC;
	}
}
